package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:06
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class ClassTeacherRelate implements java.io.Serializable {
    
    public ClassTeacherRelate() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long classId;	
	
	/**
	 * Attribute classId Be Seted Falg
	 */
	private boolean classIdSetted = false;
	
		/**
	 * Attribute classId is Null Falg
	 */
	private boolean classIdNull = false;
	
	   
    /**
	 * Get classId
	 * 
	 * @return long
	 */
	final public long getClassId(){
	    
				
		return classId;
				
	}
	
	/**
	 * Set classId
	 * 
	 * @param long
	 */
	final public void setClassId(long classId ){
		
				
		this.classId = classId;
				
		this.classIdSetted = true;
		
				
				
		this.setClassIdNull(false);
				
				
	}
	
	/**
	 * Get classId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isClassIdSetted(){
		return this.classIdSetted;
	}
	
		
	/**
	 * Set classId Null
	 * 
	 */
	final public void setClassIdNull(){
			
		this.classIdNull = true;
		
	}	
	
	final public void setClassIdNull(boolean aNullFlag){
			
		this.classIdNull = aNullFlag;
		
	}	
	
	final public boolean isClassIdNull(){
			
		return this.classIdNull;
		
	}
	
    	
	   
		
		
		
	private long teacherId;	
	
	/**
	 * Attribute teacherId Be Seted Falg
	 */
	private boolean teacherIdSetted = false;
	
		/**
	 * Attribute teacherId is Null Falg
	 */
	private boolean teacherIdNull = false;
	
	   
    /**
	 * Get teacherId
	 * 
	 * @return long
	 */
	final public long getTeacherId(){
	    
				
		return teacherId;
				
	}
	
	/**
	 * Set teacherId
	 * 
	 * @param long
	 */
	final public void setTeacherId(long teacherId ){
		
				
		this.teacherId = teacherId;
				
		this.teacherIdSetted = true;
		
				
				
		this.setTeacherIdNull(false);
				
				
	}
	
	/**
	 * Get teacherId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isTeacherIdSetted(){
		return this.teacherIdSetted;
	}
	
		
	/**
	 * Set teacherId Null
	 * 
	 */
	final public void setTeacherIdNull(){
			
		this.teacherIdNull = true;
		
	}	
	
	final public void setTeacherIdNull(boolean aNullFlag){
			
		this.teacherIdNull = aNullFlag;
		
	}	
	
	final public boolean isTeacherIdNull(){
			
		return this.teacherIdNull;
		
	}
	
    	
	   
		
		
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof ClassTeacherRelate) == false){
			return false;
		}
		ClassTeacherRelate other = (ClassTeacherRelate) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("classId=");
		buffer.append(this.classId);
		        
		buffer.append("teacherId=");
		buffer.append(this.teacherId);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}